package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zzy
 * @since 2024-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Indiscipline对象", description="")
public class Indiscipline extends Model<Indiscipline> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "违纪记录ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "学生ID")
    private Long student;

    @ApiModelProperty(value = "宿管ID")
    private Long dormitoryAdmin;

    @ApiModelProperty(value = "违纪发生时间")
    private LocalDateTime occurrenceTime;

    @ApiModelProperty(value = "违纪处理状态")
    private String state;

    @ApiModelProperty(value = "逻辑删除")
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime modifiedTime;

    @ApiModelProperty(value = "扣分")
    private Integer grade;

    @ApiModelProperty(value = "违纪原因")
    private String reason;

    @ApiModelProperty(value = "审核领导")
    private Long leader;
    @TableField(exist = false)
    private String dormitoryAdminName;
    @TableField(exist = false)
    private String studentName;
    @TableField (exist = false)
    private String leaderName;
    @TableField(exist = false)
    private int totalNum;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
